#include<stdio.h>
int main()
{
	int jishu=0;
	int oushu=0;
	int x;
	do
	{
		scanf("%d",&x);
		if(x==-1)
		{
			break;
		}
		if(x%2==0)
		{
			oushu++;
		}else
		{
			jishu++;
		}
	}while(x>0);//(x!=-1);//(x>0||x<100000);
	printf("%d %d",jishu,oushu);
	return 0;
 } 
